package day4.作业1026.作业04;

public class KePlane extends Plane {
    private int zuoweishu;

    public KePlane() {
    }

    public KePlane(int weight, int height, int zuoweishu) {
        super(weight, height);
        this.zuoweishu = zuoweishu;
    }

    public int getZuoweishu() {
        return zuoweishu;
    }

    public void setZuoweishu(int zuoweishu) {
        this.zuoweishu = zuoweishu;
    }

    @Override
    public void fly() {
        System.out.println("客机起飞");
    }

    @Override
    public void jiashu() {
        System.out.println("客机加速");
    }

    @Override
    public void jiangluo() {
        System.out.println("客机降落");
    }

    @Override
    public void show() {
        super.show();
        System.out.println("载客数"+zuoweishu);
    }
}
